<!doctype html>
<html>
<head>
    <include file="public/head"/>
    <title>插件钉钉首页</title>
    <meta name="description" content="插件钉钉首页">
    <meta name="keywords" content="插件钉钉首页">
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li><a href="{:cmf_plugin_url('dingding://AdminSense/index')}">钉钉场景后台</a></li>
        <li class="active"><a>添加场景</a></li>
    </ul>
    <form class="form-horizontal js-ajax-form margin-top-20" action="{:cmf_plugin_url('dingding://AdminSense/AddPost')}" method="post">
        <div class="form-group">
            <label for="input-app" class="col-sm-2 control-label"><span class="form-required">*</span>场景</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-app" name="sense" required>
            </div>
        </div>
        <div class="form-group">
            <label for="input-appname" class="col-sm-2 control-label">场景名称</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-appname" name="sensename" >
            </div>
        </div>
        <div class="form-group">
            <label for="input-procode" class="col-sm-2 control-label">审批单CODE</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-procode" name="procode">
            </div>
        </div>

        <div class="form-group">
            <label for="input-corp" class="col-sm-2 control-label"><span class="form-required">*</span>corp</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-corp" name="corp" required>
            </div>
        </div>
        <div class="form-group">
            <label for="input-corpid" class="col-sm-2 control-label"><span class="form-required">*</span>app</label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" id="input-corpid" name="app" required>
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-2 control-label">状态</label>
            <div class="col-md-6 col-sm-10">
                <label class="radio-inline">
                    <input type="radio" name="admin" value="1"> {:lang('ENABLED')}
                </label>
                <label class="radio-inline">
                    <input type="radio" name="admin" value="0"> {:lang('DISABLED')}
                </label>
            </div>
        </div>
        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('ADD')}</button>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>